package view;

import java.awt.event.KeyEvent;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

/**
 * This class is a premade {@link javax.swing.JMenuBar} created specifically for this program.
 * It includes all the necessary items needed.
 * @author Ben
 */
@SuppressWarnings("serial")
public class MenuBar extends JMenuBar
{
	public MenuBar()
	{
		JMenu fileMenu = new JMenu("File", true);
		fileMenu.setMnemonic(KeyEvent.VK_F);
		add(fileMenu);

		JMenuItem newGame = new JMenuItem("New Game");
		fileMenu.add(newGame);
		
		JMenuItem loadGame = new JMenuItem("Load Game");
		fileMenu.add(loadGame);
		
		JMenuItem quit = new JMenuItem("Save & Quit");
		fileMenu.add(quit);
		
		JMenu editMenu = new JMenu("Edit", true);
		editMenu.setMnemonic(KeyEvent.VK_E);
		add(editMenu);
		
		JMenuItem undo = new JMenuItem("Undo Move");
		editMenu.add(undo);
		
		JMenuItem redo = new JMenuItem("Redo Move");
		editMenu.add(redo);
		
		JMenu settingsMenu = new JMenu("Settings", true);
		settingsMenu.setMnemonic(KeyEvent.VK_S);
		add(settingsMenu);
		
		JMenuItem allSettings = new JMenuItem("Skin Settings");
		settingsMenu.add(allSettings);
		
		JMenu helpMenu = new JMenu("Help", true);
		helpMenu.setMnemonic(KeyEvent.VK_H);
		add(helpMenu);
		
		JMenuItem help = new JMenuItem("Learn to Play");
		helpMenu.add(help);
		
		setVisible(true);
	}

}